package com.atguigu.jxc.service;

import com.atguigu.jxc.entity.CustomerReturnList;
import com.atguigu.jxc.entity.CustomerReturnListGoods;
import com.atguigu.jxc.entity.vo.CustomerGoodsVo;

import java.util.List;

/**
 * @author qingyu
 * @create 2022-01-02 20:58
 * @description
 */
public interface CustomerReturnListGoodsService {
    /**
     * 客户退货单保存 并加库存
     * @param customerReturnList
     * @param customerReturnListGoodsStr
     * @param returnNumber
     */
    void save(CustomerReturnList customerReturnList, String customerReturnListGoodsStr, String returnNumber);

    /**
     * 通过customerReturnListId退货单商品信息
     * @param customerReturnListId
     * @return
     */
    List<CustomerReturnListGoods> goodList(Integer customerReturnListId);

    /**
     * 通过customerReturnListId删除退货单
     * @param customerReturnListId
     */
    void delete(Integer customerReturnListId);

    List<CustomerGoodsVo> count(String sTime, String eTime, Integer goodsTypeId, String codeOrName);
}
